$ () ->
	$(".create_btn").click (e) ->
		param = 
			uname: $("#uname").val()
			name: $("#name").val()
			password: $("#password").val()
			role_id: $("#role_id").val()

		$.post "/api/admin/account/create", param, (res) ->
			if res.status.errCode is 0
    			alert "创建成功"
    		else
    			alert res.status.message